package com.xiaoshuidi.cloud.module.rooms.repository;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiaoshuidi.cloud.module.rooms.controller.admin.map.vo.RoomStreetLatlonResp;
import com.xiaoshuidi.cloud.module.rooms.mapper.RoomStreetLatlonMapper;
import com.xiaoshuidi.cloud.module.rooms.pojo.RoomStreetLatlon;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author hans.zhang
 */
@Component
@RequiredArgsConstructor
public class RoomStreetLatlonRepository extends ServiceImpl<RoomStreetLatlonMapper, RoomStreetLatlon> {
    public List<RoomStreetLatlonResp> getRoomStreetLatlon() {
        QueryWrapper<?> wrapper = Wrappers.query();
        return this.baseMapper.getRoomStreetLatlon(wrapper);
    }
}
